home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Greatest Childrens Stories Ever Told
/
Greatest_Stories.iso
/
demos
/
funtown
/
demo.dir
/
00048_Script_Scripts 3
< prev
next >
Wrap
Text File
|
1994-11-08
|
5KB
|
151 lines
--òòò Scripts 3
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on smallViewReposition
set userLoc=the clickLoc
global CU
if CU then exit
set oneThirdH=the width of sprite 34/3
set oneThirdV=the height of sprite 34/3
set navigationRect=the rect of sprite 34
set oneThirdRect=navigationRect - rect ( 0,0,oneThirdH*2,oneThirdV*2 )
if inside ( userLoc, oneThirdRect ) then reposition "1"
else if inside ( userLoc, offset ( oneThirdRect, oneThirdH, 0 )) then reposition "2"
else if inside ( userLoc, offset ( oneThirdRect, oneThirdH*2, 0 )) then reposition "3"
else if inside ( userLoc, offset ( oneThirdRect, 0, oneThirdV )) then reposition "8"
else if inside ( userLoc, offset ( oneThirdRect, oneThirdH, oneThirdV )) then reposition "c"
else if inside ( userLoc, offset ( oneThirdRect, oneThirdH*2, oneThirdV )) then reposition "4"
else if inside ( userLoc, offset ( oneThirdRect, 0, oneThirdV*2 )) then reposition "7"
else if inside ( userLoc, offset ( oneThirdRect, oneThirdH, oneThirdV*2 )) then reposition "6"
else if inside ( userLoc, offset ( oneThirdRect, oneThirdH*2, oneThirdV*2 )) then reposition "5"
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on reposition nextView
global mode, MS, CV, H, V, CIU, MIU
global backDropParameters, QL, dontPassIt, CU
if CU then exit
if CIU then restoreChalk
if MIU then disengageMap
if CV="0" or string (nextView)="0" then set dontPassIt=1
else set dontPassIt=0
set CV=string (nextView)
if the locH of sprite 47<>190 then
if the locV of sprite 47<>310 then
deactivate string ( 47 )
end if
end if
puppetTransition 0
if mode=2 then
go frame ("pos"& CV)
else
deactivate "2"
go frame ("pos"& CV& "1")
showPatch the left of sprite 1, the top of sprite 1
end if
updateStage
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on initializeMap
global CV, CIU, MIU, NM, M, PMS, CU, TF, mode
if CU then exit
put the frame into TF
if mode > 2 then deactivate "48"
set the trails of sprite 47=false
if CIU then restoreChalk
if MIU then disengageMap
repeat with x=1 to 24
put the puppet of sprite x into item x of PMS
if the frame <> label ( "pos01" ) then puppetSprite x, true
else puppetSprite x, false
end repeat
repeat with x=25 to 33
puppetSprite x, false
end repeat
puppetSprite 47, false
puppetSprite 39, true
puppetTransition 50,0,8
go marker ("pos"& CV) +2
set MIU=1
go frame "map"
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on engageMap
global CV, CIU, MIU, NM, M, CU
if CU then exit
puppetSprite ( 47 ), true
repeat with x=26 to 33
StartTimer
if rollOver ( x ) then
if the type of sprite x=1 then
repeat while RollOver(x) = True
if the timer >= 7 then
set NM=( item 1 of the name of cast ( the castNum of sprite x ))
set M=( item 2 of the name of cast ( the castNum of sprite x ))
--Sound PlayFile 1, "Around the Town:Sounds:"&(item 2 of the name of Cast (the CastNum of Sprite x))
--Sound PlayFile 1, ( item 2 of the name of cast ( the castNum of sprite x ))
puppetSound ( item 2 of the name of cast ( the castNum of sprite x ))
exit repeat
end if
end repeat
set the castNum of sprite ( 47 )=the number of cast ( "map"& NM )
updateStage
repeat while RollOver(x) = True
if the MouseDown then
put (item 2 of the name of Cast (the CastNum of Sprite x)) into Mikey
delete char 1 of Mikey
selectFromMap Mikey
exit
end if
end repeat
exit repeat
end if
end if
end repeat
go the frame
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on disengageMap
global mode, CV, CIU, MIU, NM, M, PMS, CU, TF, MS
if CU then exit
if CIU then restoreChalk
puppetSprite ( 47 ), false
puppetTransition 0
if mode > 2 then activate 48, the number of Cast "Skip",1,8,192,363,"","",""
go marker ( "map" ) +3
go marker ( "map" ) +2
go marker ( "map" ) +1
go marker ( "map" )
repeat with x=1 to 24
puppetSprite x, value ( item x of PMS )
end repeat
puppetSprite 39, false
set MIU=0
if mode = 2 then
go frame ("pos"& CV)
else
deactivate "2"
go frame ("pos"& CV& "1")
ShowPatch the left of sprite 1, the top of sprite 1
end if
updateStage
set M=the movie
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on selectFromMap Mikey
global FTM, CU,myFrame
if CU then exit
set FTM = true
doWindow3
--alert "The map feature has been disabled"&Return&"on this demo."
--engageMap
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on HalfCorrectFace
global mode
if mode = 2 then exit
activate 44, the number of Cast "Skip",1,8,192,363,"","",""
updateStage
end